package com.tonicgb.mapper;

import com.tonicgb.model.Admins;
import com.tonicgb.shared.core.crud.dao.CruDao;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AdminsMapper extends CruDao<Admins> {


    @Select("select * from admins")
    List<Admins> getAll();

    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(Admins record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(Admins record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    Admins selectByPrimaryKey(Long id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(Admins record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(Admins record);
}
